if (!c)
return path;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_path_iter_add_region (path,
gtk_widget_path_length (path) - 2,
GTK_STYLE_REGION_TAB,
_gtk_notebook_get_tab_flags (notebook, page));
+G_GNUC_END_IGNORE_DEPRECATIONS
return path;
}
{
GtkRegionFlags current_flags;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* FIXME: We should store these flags somewhere instead of poking
* the widget's path */
if (!gtk_widget_path_iter_has_region (gtk_widget_get_path (page->tab_label),
¤t_flags)
|| current_flags != _gtk_notebook_get_tab_flags (notebook, page))
_gtk_widget_invalidate_style_context (page->tab_label, GTK_CSS_CHANGE_PARENT_STATE);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
}
}
GtkRegion *region;
region = &g_array_index (info->regions, GtkRegion, i);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_path_iter_add_region (path, pos,
g_quark_to_string (region->class_quark),
region->flags);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
/* Set widget classes */
if (!list->next)
flags |= GTK_REGION_LAST;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_path_iter_add_region (path, gtk_widget_path_length (path) - 2, GTK_STYLE_REGION_COLUMN_HEADER, flags);
+G_GNUC_END_IGNORE_DEPRECATIONS
break;
}
g_list_free (visible_columns);
* and “-”, starting always with a lowercase letter.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
void
gtk_widget_path_iter_add_region (GtkWidgetPath *path,
* the hierarchy defined in @path.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
void
gtk_widget_path_iter_remove_region (GtkWidgetPath *path,
* hierarchy defined in @path.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
void
gtk_widget_path_iter_clear_regions (GtkWidgetPath *path,
* free the list itself.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
GSList *
gtk_widget_path_iter_list_regions (const GtkWidgetPath *path,
* Returns: %TRUE if the widget at @pos has the region defined.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
gboolean
gtk_widget_path_iter_has_qregion (const GtkWidgetPath *path,
* Returns: %TRUE if the class @name is defined for the widget at @pos
*
* Since: 3.0
+ *
+ * Deprecated: 3.14: The use of regions is deprecated.
**/
gboolean
gtk_widget_path_iter_has_region (const GtkWidgetPath *path,
if (qname == 0)
return FALSE;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
return gtk_widget_path_iter_has_qregion (path, pos, qname, flags);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
/**
gint pos,
GQuark qname);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
void gtk_widget_path_iter_add_region (GtkWidgetPath *path,
gint pos,
const gchar *name,
GtkRegionFlags flags);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
void gtk_widget_path_iter_remove_region (GtkWidgetPath *path,
gint pos,
const gchar *name);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
void gtk_widget_path_iter_clear_regions (GtkWidgetPath *path,
gint pos);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
GSList * gtk_widget_path_iter_list_regions (const GtkWidgetPath *path,
gint pos);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
gboolean gtk_widget_path_iter_has_region (const GtkWidgetPath *path,
gint pos,
const gchar *name,
GtkRegionFlags *flags);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_14
gboolean gtk_widget_path_iter_has_qregion (const GtkWidgetPath *path,
gint pos,
GQuark qname,
gtk_widget_path_iter_clear_classes (path, 1);
g_assert (!gtk_widget_path_iter_has_class (path, 1, "class1"));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_path_iter_add_region (path, 1, "tab", 0);
gtk_widget_path_iter_add_region (path, 1, "title", GTK_REGION_EVEN | GTK_REGION_FIRST);
g_assert (gtk_widget_path_iter_has_region (path2, 1, "title", &flags) &&
flags == (GTK_REGION_EVEN | GTK_REGION_FIRST));
g_assert (!gtk_widget_path_iter_has_region (path2, 1, "extension", NULL));
+G_GNUC_END_IGNORE_DEPRECATIONS
+
gtk_widget_path_free (path2);
gtk_widget_path_free (path);